# Maintainer: Norbert Pfeiler <norbert.pfeiler+aur ät gmail.com>

_realname=cmake-doc-qt
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=3.8.2
pkgrel=1
pkgdesc="CMake documentation in Qt Help format"
arch=('any')
license=('CCPL:cc-by')
url='https://www.cmake.org/documentation/'
# rename to include version of each release
# (prevents accidentally using the file of an older version)
source=("CMake-$pkgver.qch::https://www.cmake.org/cmake/help/v${pkgver:0:3}/CMake.qch")
sha256sums=('e172c3e449d6333eeb077ffcdcaa11a76fe870857611b5855e77ade939f56ae1')

package() {
  mkdir -p "$pkgdir${MINGW_PREFIX}/share/qt5/doc"
  cp "$srcdir/CMake-$pkgver.qch" "$pkgdir${MINGW_PREFIX}/share/qt5/doc"
}
